<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>删除成员</title>
    <script type="text/javascript">
        function delMember() {
            const memberId = document.getElementById('memberId').value;
            const memberName = document.getElementById('memberName').value;
            const memberZhuanye = document.getElementById('memberZhuanye').value;
            if (memberId && memberName && memberZhuanye) {
                if (window.confirm('确认删除该成员吗？')) {
                    document.location.href = 'member/delete?id=' + memberId + '&name=' + memberName + '&zhuanye=' + memberZhuanye;
                }
            } else {
                alert('请输入完整的成员信息！');
            }
        }
    </script>
</head>
<body>
<h2>删除成员</h2>
<form>
    成员ID: <input type="text" id="memberId" name="id"><br>
    成员姓名: <input type="text" id="memberName" name="name"><br>
    成员专业: <input type="text" id="memberZhuanye" name="zhuanye"><br>
    <input type="button" value="删除成员" onclick="delMember()">
</form>
</body>
</html>